package com.acme.bankapp.domain.bank;

public class SavingAccount extends AbstractAccount implements Account {

	public SavingAccount(double balance) {
		super(balance);
	}

	@Override
	public void withdraw(double amount) {
		if (this.balance >= amount)
			this.balance -= amount;
	}

	@Override
	public double maxAmountToWithdraw() {
		return this.getBalance();
	}
}
